<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>德尔菲法软件成本测算工具</title>
    <style>
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Microsoft YaHei', Arial, sans-serif;
        }

        body {
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* 登录表单样式 */
        .login-form,
        .register-form {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 30px;
            max-width: 400px;
            margin: 50px auto;
        }

        h1, h2, h3 {
            text-align: center;
            margin-bottom: 30px;
            color: #333;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: #555;
        }

        input[type="text"],
        input[type="password"],
        input[type="email"],
        textarea,
        select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
            transition: border-color 0.3s;
        }

        input[type="text"]:focus,
        input[type="password"]:focus,
        input[type="email"]:focus,
        textarea:focus,
        select:focus {
            border-color: #4a90e2;
            outline: none;
            box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
        }

        .btn {
            display: inline-block;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s;
            text-align: center;
            text-decoration: none;
        }

        .btn-primary {
            background-color: #4a90e2;
            color: #fff;
        }

        .btn-primary:hover {
            background-color: #3a80d2;
        }

        .btn-secondary {
            background-color: #f0f7ff;
            color: #4a90e2;
            border: 1px solid #4a90e2;
        }

        .btn-secondary:hover {
            background-color: #e0f0ff;
        }

        .btn-danger {
            background-color: #fff;
            color: #e74c3c;
            border: 1px solid #e74c3c;
        }

        .btn-danger:hover {
            background-color: #fef5f5;
        }

        .form-actions {
            margin-top: 30px;
            text-align: center;
        }

        .form-links {
            margin-top: 20px;
            text-align: center;
        }

        .form-links a {
            color: #4a90e2;
            text-decoration: none;
            font-size: 14px;
        }

        .form-links a:hover {
            text-decoration: underline;
        }

        /* 头部样式 */
        .header {
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 0 20px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            font-size: 18px;
            font-weight: bold;
            color: #4a90e2;
        }

        .main-nav ul {
            display: flex;
            list-style: none;
        }

        .main-nav li {
            margin-right: 20px;
        }

        .main-nav a {
            text-decoration: none;
            color: #555;
            font-weight: 500;
            padding: 5px 10px;
            border-radius: 4px;
        }

        .main-nav a.active,
        .main-nav a:hover {
            color: #4a90e2;
        }

        .user-menu {
            display: flex;
            align-items: center;
        }

        .username {
            margin-right: 15px;
            font-weight: 500;
        }

        .logout {
            color: #e74c3c;
            text-decoration: none;
            font-size: 14px;
        }

        /* 主容器样式 */
        .main-container {
            display: flex;
            min-height: calc(100vh - 60px);
        }

        /* 侧边栏样式 */
        .sidebar {
            width: 200px;
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 20px 0;
        }

        .sidebar-menu {
            list-style: none;
        }

        .sidebar-menu li {
            margin-bottom: 5px;
        }

        .sidebar-menu a {
            display: block;
            padding: 10px 20px;
            color: #555;
            text-decoration: none;
            transition: background-color 0.3s;
        }

        .sidebar-menu a.active,
        .sidebar-menu a:hover {
            background-color: #f0f7ff;
            color: #4a90e2;
            border-left: 3px solid #4a90e2;
        }

        /* 内容区域样式 */
        .content {
            flex: 1;
            padding: 20px;
        }

        .content-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .content-header h2 {
            font-size: 24px;
            color: #333;
        }

        /* 表格样式 */
        .table-container {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            margin-bottom: 20px;
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
        }

        .data-table th,
        .data-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .data-table th {
            background-color: #f9f9f9;
            font-weight: 600;
            color: #555;
        }

        .data-table tbody tr:hover {
            background-color: #f5f9ff;
        }

        .status-active {
            color: #27ae60;
            font-weight: 500;
        }

        .status-completed {
            color: #7f8c8d;
        }

        .content-actions {
            margin-top: 20px;
            display: flex;
            gap: 10px;
        }

        /* 模态对话框样式 */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .modal-content {
            background-color: #fff;
            margin: 50px auto;
            width: 600px;
            max-width: 90%;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            animation: modalFadeIn 0.3s;
        }

        @keyframes modalFadeIn {
            from {opacity: 0; transform: translateY(-50px);}
            to {opacity: 1; transform: translateY(0);}
        }

        .modal-header {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            font-size: 18px;
            color: #333;
            text-align: left;
            margin-bottom: 0;
        }

        .close-modal {
            font-size: 24px;
            font-weight: bold;
            color: #aaa;
            cursor: pointer;
        }

        .close-modal:hover {
            color: #555;
        }

        .modal-body {
            padding: 20px;
        }

        /* 模块项样式 */
        .module-item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .module-item input {
            flex: 1;
            margin-right: 10px;
        }

        .btn-remove-module {
            background-color: #fff;
            color: #e74c3c;
            border: 1px solid #e74c3c;
            padding: 5px 10px;
            border-radius: 4px;
            cursor: pointer;
        }

        .btn-remove-module:hover {
            background-color: #fef5f5;
        }

        #addModuleBtn {
            margin-top: 10px;
        }

        /* 问卷样式 */
        .questionnaire {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 30px;
            margin-bottom: 20px;
        }

        .question {
            margin-bottom: 30px;
        }

        .question-title {
            font-weight: 600;
            margin-bottom: 10px;
        }

        .rating-scale {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }

        .rating-option {
            display: flex;
            align-items: center;
        }

        .rating-option input {
            margin-right: 5px;
        }

        /* 统计图表样式 */
        .chart-container {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 20px;
            margin-top: 20px;
            height: 300px;
        }

        .chart {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            padding-top: 20px;
            position: relative;
        }

        .chart::before {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 1px;
            background-color: #ddd;
        }

        .chart::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 1px;
            height: 100%;
            background-color: #ddd;
        }

        .chart-bar {
            width: 40px;
            background-color: #4a90e2;
            position: relative;
            transition: height 0.5s;
        }

        .chart-bar::after {
            content: attr(data-value);
            position: absolute;
            top: -25px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 12px;
        }

        .chart-label {
            position: absolute;
            bottom: -25px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 12px;
        }

        /* 报告选项样式 */
        .report-options {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 30px;
        }

        .option-group {
            margin-bottom: 20px;
        }

        .option-group h3 {
            text-align: left;
            margin-bottom: 15px;
            font-size: 18px;
        }

        .radio-group,
        .checkbox-group {
            margin-bottom: 10px;
        }

        .radio-option,
        .checkbox-option {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .radio-option input,
        .checkbox-option input {
            margin-right: 10px;
        }

        /* 页面切换样式 */
        .page {
            display: none;
        }

        .page.active {
            display: block;
        }

        /* 导航样式 */
        .tab-nav {
            display: flex;
            background-color: #fff;
            border-radius: 8px 8px 0 0;
            overflow: hidden;
            margin-bottom: 20px;
        }

        .tab-nav a {
            padding: 15px 20px;
            text-decoration: none;
            color: #555;
            font-weight: 500;
            flex: 1;
            text-align: center;
            border-bottom: 2px solid transparent;
            transition: all 0.3s;
        }

        .tab-nav a.active {
            color: #4a90e2;
            border-bottom-color: #4a90e2;
            background-color: #f0f7ff;
        }

        .tab-nav a:hover {
            background-color: #f5f5f5;
        }

        /* 专家ID样式 */
        .expert-id {
            background-color: #f9f9f9;
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 20px;
            font-family: monospace;
            word-break: break-all;
        }

        /* 响应式样式 */
        @media (max-width: 768px) {
            .main-container {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                margin-bottom: 20px;
            }

            .content-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .content-header button {
                margin-top: 10px;
            }
        }
    </style>
</head>
<body>
    <div class="tab-nav">
        <a href="#" class="tab-link active" data-target="login-page">登录界面</a>
        <a href="#" class="tab-link" data-target="register-page">专家注册</a>
        <a href="#" class="tab-link" data-target="project-page">项目管理</a>
        <a href="#" class="tab-link" data-target="questionnaire-page">问卷填写</a>
        <a href="#" class="tab-link" data-target="analysis-page">统计分析</a>
        <a href="#" class="tab-link" data-target="report-page">报告生成</a>
    </div>

    <!-- 登录界面 -->
    <div id="login-page" class="page active">
        <div class="container">
            <div class="login-form">
                <h1>德尔菲法软件成本估算系统</h1>
                <form id="loginForm">
                    <div class="form-group">
                        <label for="username">用户名:</label>
                        <input type="text" id="username" name="username" required>
                    </div>
                    <div class="form-group">
                        <label for="password">密码:</label>
                        <input type="password" id="password" name="password" required>
                    </div>
                    <div class="form-actions">
                        <button type="button" class="btn btn-primary login-btn">登录</button>
                    </div>
                    <div class="form-links">
                        <a href="#" class="register-link">注册新账号</a>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <!-- 专家注册界面 -->
    <div id="register-page" class="page">
        <div class="container">
            <div class="register-form">
                <h1>专家注册</h1>
                <form id="registerForm">
                    <div class="form-group">
                        <label for="reg-username">用户名:</label>
                        <input type="text" id="reg-username" name="username" required>
                    </div>
                    <div class="form-group">
                        <label for="email">电子邮件:</label>
                        <input type="email" id="email" name="email" required>
                    </div>
                    <div class="form-group">
                        <label for="reg-password">密码:</label>
                        <input type="password" id="reg-password" name="password" required>
                    </div>
                    <div class="form-group">
                        <label for="confirmPassword">确认密码:</label>
                        <input type="password" id="confirmPassword" name="confirmPassword" required>
                    </div>
                    <div class="form-actions">
                        <button type="button" class="btn btn-primary register-btn">注册</button>
                    </div>
                    <div class="form-links">
                        <a href="#" class="login-link">返回登录</a>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <!-- 项目管理界面 -->
    <div id="project-page" class="page">
        <header class="header">
            <div class="logo">德尔菲法软件成本估算系统</div>
            <nav class="main-nav">
                <ul>
                    <li><a href="#" class="active">项目</a></li>
                    <li><a href="#">问卷</a></li>
                    <li><a href="#">统计分析</a></li>
                    <li><a href="#">报告</a></li>
                </ul>
            </nav>
            <div class="user-menu">
                <span class="username">管理员</span>
                <a href="#" class="logout">退出</a>
            </div>
        </header>
        
        <div class="main-container">
            <aside class="sidebar">
                <ul class="sidebar-menu">
                    <li><a href="#" class="active">项目管理</a></li>
                    <li><a href="#">问卷管理</a></li>
                    <li><a href="#">统计分析</a></li>
                    <li><a href="#">报告生成</a></li>
                </ul>
            </aside>
            
            <main class="content">
                <div class="content-header">
                    <h2>项目列表</h2>
                    <button id="createProjectBtn" class="btn btn-primary">创建新项目</button>
                </div>
                
                <div class="table-container">
                    <table class="data-table">
                        <thead>
                            <tr>
                                <th>项目ID</th>
                                <th>项目名称</th>
                                <th>创建时间</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>1</td>
                                <td>在线教育平台</td>
                                <td>2025-05-01</td>
                                <td><span class="status-active">活跃</span></td>
                                <td><a href="#">查看</a></td>
                            </tr>
                            <tr>
                                <td>2</td>
                                <td>电子商务系统</td>
                                <td>2025-04-15</td>
                                <td><span class="status-active">活跃</span></td>
                                <td><a href="#">查看</a></td>
                            </tr>
                            <tr>
                                <td>3</td>
                                <td>医疗管理系统</td>
                                <td>2025-03-22</td>
                                <td><span class="status-completed">已完成</span></td>
                                <td><a href="#">查看</a></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                
                <div class="content-actions">
                    <button id="viewProjectBtn" class="btn btn-secondary">查看项目</button>
                    <button id="deleteProjectBtn" class="btn btn-danger">删除项目</button>
                </div>
            </main>
        </div>
        
        <!-- 创建项目对话框 -->
        <div id="createProjectModal" class="modal">
            <div class="modal-content">
                <div class="modal-header">
                    <h3>创建新项目</h3>
                    <span class="close-modal">&times;</span>
                </div>
                <div class="modal-body">
                    <form id="createProjectForm">
                        <div class="form-group">
                            <label for="projectName">项目名称:</label>
                            <input type="text" id="projectName" name="projectName" required>
                        </div>
                        <div class="form-group">
                            <label for="projectDescription">项目描述:</label>
                            <textarea id="projectDescription" name="projectDescription" rows="4"></textarea>
                        </div>
                        <div class="form-group">
                            <label>功能模块:</label>
                            <div id="modulesContainer">
                                <div class="module-item">
                                    <input type="text" name="module" placeholder="输入模块名称" required>
                                    <button type="button" class="btn-remove-module">删除</button>
                                </div>
                            </div>
                            <button type="button" id="addModuleBtn" class="btn btn-secondary">添加模块</button>
                        </div>
                        <div class="form-actions">
                            <button type="button" class="btn btn-primary create-project-submit">创建项目</button>
                            <button type="button" class="btn btn-cancel close-modal">取消</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <!-- 问卷填写界面 -->
    <div id="questionnaire-page" class="page">
        <header class="header">
            <div class="logo">德尔菲法软件成本估算系统</div>
            <div class="user-menu">
                <span class="username">专家A</span>
                <a href="#" class="logout">退出</a>
            </div>
        </header>
        
        <div class="container">
            <h2>问卷填写: 在线教育平台</h2>
            
            <div class="expert-id">
                您的专家ID: 8a7b6c5d-4e3f-2g1h-0i9j-8k7l6m5n4o3p
            </div>
            
            <div class="questionnaire">
                <div class="question">
                    <div class="question-title">问题1: 您认为该模块的工作量是多少人月?</div>
                    <div class="rating-scale">
                        <div class="rating-option">
                            <input type="radio" id="q1-1" name="question1" value="1">
                            <label for="q1-1">1</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q1-2" name="question1" value="2">
                            <label for="q1-2">2</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q1-3" name="question1" value="3">
                            <label for="q1-3">3</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q1-4" name="question1" value="4">
                            <label for="q1-4">4</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q1-5" name="question1" value="5">
                            <label for="q1-5">5</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q1-6" name="question1" value="6">
                            <label for="q1-6">6</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q1-7" name="question1" value="7">
                            <label for="q1-7">7</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q1-8" name="question1" value="8">
                            <label for="q1-8">8</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q1-9" name="question1" value="9">
                            <label for="q1-9">9</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q1-10" name="question1" value="10">
                            <label for="q1-10">10</label>
                        </div>
                    </div>
                </div>
                
                <div class="question">
                    <div class="question-title">问题2: 请评估该模块的复杂度</div>
                    <div class="rating-scale">
                        <div class="rating-option">
                            <input type="radio" id="q2-1" name="question2" value="1">
                            <label for="q2-1">1 (低)</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q2-2" name="question2" value="2">
                            <label for="q2-2">2</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q2-3" name="question2" value="3">
                            <label for="q2-3">3</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q2-4" name="question2" value="4">
                            <label for="q2-4">4</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q2-5" name="question2" value="5">
                            <label for="q2-5">5</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q2-6" name="question2" value="6">
                            <label for="q2-6">6</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q2-7" name="question2" value="7">
                            <label for="q2-7">7</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q2-8" name="question2" value="8">
                            <label for="q2-8">8</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q2-9" name="question2" value="9">
                            <label for="q2-9">9</label>
                        </div>
                        <div class="rating-option">
                            <input type="radio" id="q2-10" name="question2" value="10">
                            <label for="q2-10">10 (高)</label>
                        </div>
                    </div>
                </div>
                
                <div class="question">
                    <div class="question-title">问题3: 该模块可能的风险因素</div>
                    <textarea rows="4" name="question3" placeholder="请输入您的看法..."></textarea>
                </div>
                
                <div class="form-actions">
                    <button class="btn btn-primary submit-questionnaire">提交</button>
                    <button class="btn btn-secondary save-draft">保存草稿</button>
                  </div>
                </div>
            </div>
        </div>
    
        <!-- 统计分析界面 -->
        <div id="analysis-page" class="page">
            <header class="header">
                <div class="logo">德尔菲法软件成本估算系统</div>
                <nav class="main-nav">
                    <ul>
                        <li><a href="#">项目</a></li>
                        <li><a href="#">问卷</a></li>
                        <li><a href="#" class="active">统计分析</a></li>
                        <li><a href="#">报告</a></li>
                    </ul>
                </nav>
                <div class="user-menu">
                    <span class="username">管理员</span>
                    <a href="#" class="logout">退出</a>
                </div>
            </header>
            
            <div class="main-container">
                <aside class="sidebar">
                    <ul class="sidebar-menu">
                        <li><a href="#">项目管理</a></li>
                        <li><a href="#">问卷管理</a></li>
                        <li><a href="#" class="active">统计分析</a></li>
                        <li><a href="#">报告生成</a></li>
                    </ul>
                </aside>
                
                <main class="content">
                    <div class="content-header">
                        <h2>统计分析: 在线教育平台</h2>
                        <div>
                            <button class="btn btn-secondary">导出Excel</button>
                        </div>
                    </div>
                    
                    <div class="table-container">
                        <table class="data-table">
                            <thead>
                                <tr>
                                    <th>模块名称</th>
                                    <th>最小值</th>
                                    <th>最大值</th>
                                    <th>平均值</th>
                                    <th>中位数</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>用户管理</td>
                                    <td>2.5</td>
                                    <td>8.0</td>
                                    <td>5.2</td>
                                    <td>5.0</td>
                                </tr>
                                <tr>
                                    <td>课程系统</td>
                                    <td>4.0</td>
                                    <td>12.0</td>
                                    <td>7.8</td>
                                    <td>8.0</td>
                                </tr>
                                <tr>
                                    <td>支付模块</td>
                                    <td>3.0</td>
                                    <td>9.0</td>
                                    <td>6.5</td>
                                    <td>6.0</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    
                    <div class="chart-container">
                        <h3>工作量估算分布图</h3>
                        <div class="chart">
                            <div class="chart-bar" style="height: 52%;" data-value="5.2">
                                <div class="chart-label">用户管理</div>
                            </div>
                            <div class="chart-bar" style="height: 78%;" data-value="7.8">
                                <div class="chart-label">课程系统</div>
                            </div>
                            <div class="chart-bar" style="height: 65%;" data-value="6.5">
                                <div class="chart-label">支付模块</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="content-actions">
                        <button class="btn btn-secondary">查看详细数据</button>
                    </div>
                </main>
            </div>
        </div>
    
        <!-- 报告生成界面 -->
        <div id="report-page" class="page">
            <header class="header">
                <div class="logo">德尔菲法软件成本估算系统</div>
                <nav class="main-nav">
                    <ul>
                        <li><a href="#">项目</a></li>
                        <li><a href="#">问卷</a></li>
                        <li><a href="#">统计分析</a></li>
                        <li><a href="#" class="active">报告</a></li>
                    </ul>
                </nav>
                <div class="user-menu">
                    <span class="username">管理员</span>
                    <a href="#" class="logout">退出</a>
                </div>
            </header>
            
            <div class="main-container">
                <aside class="sidebar">
                    <ul class="sidebar-menu">
                        <li><a href="#">项目管理</a></li>
                        <li><a href="#">问卷管理</a></li>
                        <li><a href="#">统计分析</a></li>
                        <li><a href="#" class="active">报告生成</a></li>
                    </ul>
                </aside>
                
                <main class="content">
                    <div class="content-header">
                        <h2>报告生成: 在线教育平台</h2>
                    </div>
                    
                    <div class="report-options">
                        <form id="reportForm">
                            <div class="option-group">
                                <h3>报告类型:</h3>
                                <div class="radio-group">
                                    <div class="radio-option">
                                        <input type="radio" id="summary-report" name="reportType" value="summary" checked>
                                        <label for="summary-report">摘要报告</label>
                                    </div>
                                    <div class="radio-option">
                                        <input type="radio" id="detailed-report" name="reportType" value="detailed">
                                        <label for="detailed-report">详细报告</label>
                                    </div>
                                    <div class="radio-option">
                                        <input type="radio" id="full-report" name="reportType" value="full">
                                        <label for="full-report">完整报告</label>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="option-group">
                                <h3>包含内容:</h3>
                                <div class="checkbox-group">
                                    <div class="checkbox-option">
                                        <input type="checkbox" id="include-overview" name="includeContent" value="overview" checked>
                                        <label for="include-overview">项目概述</label>
                                    </div>
                                    <div class="checkbox-option">
                                        <input type="checkbox" id="include-estimation" name="includeContent" value="estimation" checked>
                                        <label for="include-estimation">工作量估算结果</label>
                                    </div>
                                    <div class="checkbox-option">
                                        <input type="checkbox" id="include-expert-opinions" name="includeContent" value="expertOpinions" checked>
                                        <label for="include-expert-opinions">专家意见汇总</label>
                                    </div>
                                    <div class="checkbox-option">
                                        <input type="checkbox" id="include-raw-data" name="includeContent" value="rawData">
                                        <label for="include-raw-data">原始数据</label>
                                    </div>
                                    <div class="checkbox-option">
                                        <input type="checkbox" id="include-charts" name="includeContent" value="charts">
                                        <label for="include-charts">统计分析图表</label>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="option-group">
                                <h3>输出格式:</h3>
                                <div class="radio-group">
                                    <div class="radio-option">
                                        <input type="radio" id="format-pdf" name="outputFormat" value="pdf" checked>
                                        <label for="format-pdf">PDF</label>
                                    </div>
                                    <div class="radio-option">
                                        <input type="radio" id="format-word" name="outputFormat" value="word">
                                        <label for="format-word">Word</label>
                                    </div>
                                    <div class="radio-option">
                                        <input type="radio" id="format-excel" name="outputFormat" value="excel">
                                        <label for="format-excel">Excel</label>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="form-actions">
                                <button type="button" class="btn btn-primary generate-report">生成报告</button>
                                <button type="button" class="btn btn-secondary preview-report">预览</button>
                            </div>
                        </form>
                    </div>
                </main>
            </div>
        </div>
    
        <script>
            // 页面切换功能
            document.querySelectorAll('.tab-link').forEach(tab => {
                tab.addEventListener('click', function(e) {
                    e.preventDefault();
                    
                    // 移除所有页面和标签的活动状态
                    document.querySelectorAll('.page').forEach(page => {
                        page.classList.remove('active');
                    });
                    
                    document.querySelectorAll('.tab-link').forEach(t => {
                        t.classList.remove('active');
                    });
                    
                    // 激活当前标签和对应页面
                    this.classList.add('active');
                    const targetPage = this.getAttribute('data-target');
                    document.getElementById(targetPage).classList.add('active');
                });
            });
            
            // 登录和注册页面切换
            document.querySelector('.register-link').addEventListener('click', function(e) {
                e.preventDefault();
                document.querySelector('[data-target="register-page"]').click();
            });
            
            document.querySelector('.login-link').addEventListener('click', function(e) {
                e.preventDefault();
                document.querySelector('[data-target="login-page"]').click();
            });
            
            // 创建项目模态框
            const createProjectBtn = document.getElementById('createProjectBtn');
            const createProjectModal = document.getElementById('createProjectModal');
            const closeModalBtns = document.querySelectorAll('.close-modal');
            
            createProjectBtn.addEventListener('click', function() {
                createProjectModal.style.display = 'block';
            });
            
            closeModalBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    createProjectModal.style.display = 'none';
                });
            });
            
            // 点击模态框外部关闭
            window.addEventListener('click', function(event) {
                if (event.target === createProjectModal) {
                    createProjectModal.style.display = 'none';
                }
            });
            
            // 添加模块功能
            const addModuleBtn = document.getElementById('addModuleBtn');
            const modulesContainer = document.getElementById('modulesContainer');
            
            addModuleBtn.addEventListener('click', function() {
                const moduleItem = document.createElement('div');
                moduleItem.className = 'module-item';
                moduleItem.innerHTML = `
                    <input type="text" name="module" placeholder="输入模块名称" required>
                    <button type="button" class="btn-remove-module">删除</button>
                `;
                modulesContainer.appendChild(moduleItem);
                
                // 为新添加的删除按钮添加事件
                moduleItem.querySelector('.btn-remove-module').addEventListener('click', function() {
                    modulesContainer.removeChild(moduleItem);
                });
            });
            
            // 为初始的删除按钮添加事件
            document.querySelector('.btn-remove-module').addEventListener('click', function() {
                alert('至少需要保留一个模块');
            });
            
            // 模拟表单提交
            document.querySelector('.login-btn').addEventListener('click', function() {
                alert('登录成功！');
                document.querySelector('[data-target="project-page"]').click();
            });
            
            document.querySelector('.register-btn').addEventListener('click', function() {
                const password = document.getElementById('reg-password').value;
                const confirmPassword = document.getElementById('confirmPassword').value;
                
                if (password !== confirmPassword) {
                    alert('两次输入的密码不一致！');
                    return;
                }
                
                alert('注册成功！您的专家ID为: 8a7b6c5d-4e3f-2g1h-0i9j-8k7l6m5n4o3p');
                document.querySelector('[data-target="login-page"]').click();
            });
            
            document.querySelector('.create-project-submit').addEventListener('click', function() {
                alert('项目创建成功！');
                createProjectModal.style.display = 'none';
            });
            
            document.querySelector('.submit-questionnaire').addEventListener('click', function() {
                alert('问卷提交成功！感谢您的参与。');
                document.querySelector('[data-target="login-page"]').click();
            });
            
            document.querySelector('.save-draft').addEventListener('click', function() {
                alert('草稿保存成功！');
            });
            
            document.querySelector('.generate-report').addEventListener('click', function() {
                alert('报告生成成功！正在下载...');
            });
            
            document.querySelector('.preview-report').addEventListener('click', function() {
                alert('正在生成预览...');
            });
        </script>
    </body>
    </html>
    
